package utils

import "time"

// GetToday0 获取今天0点的时间戳
func GetToday0() time.Time {
	now := time.Now()
	return time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, now.Location())
}

// GetTodayHM 获取今天特定小时和分钟的时间戳
func GetTodayHM(h int, m int) time.Time {
	now := time.Now()
	return time.Date(now.Year(), now.Month(), now.Day(), h, m, 0, 0, now.Location())
}
